/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file    gpio.h
  * @brief   This file contains all the function prototypes for
  *          the gpio.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GPIO_H__
#define __GPIO_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

#include "sys.h"


#define REACH_UPPER_LIMIT HAL_GPIO_ReadPin(GPIOA,PhotoElectric_4_Pin)
	
#define LOWER_LIMIT		3
#define UPPER_LIMIT 	4
#define PhotoElectric_2		5
#define PhotoElectric_1		6


#define PhotoElectric_4_Pin 		GPIO_PIN_3
#define PhotoElectric_4_GPIO_Port 	GPIOA
#define PhotoElectric_3_Pin 		GPIO_PIN_4
#define PhotoElectric_3_GPIO_Port 	GPIOA
#define PhotoElectric_2_Pin 		GPIO_PIN_5
#define PhotoElectric_2_GPIO_Port 	GPIOA
#define PhotoElectric_1_Pin 		GPIO_PIN_6
#define PhotoElectric_1_GPIO_Port 	GPIOA
#define Indicator_light_Pin 		GPIO_PIN_12
#define Indicator_light_GPIO_Port 	GPIOB
#define SW_Pin 						GPIO_PIN_15  //unused
#define SW_GPIO_Port 				GPIOB
#define DIR_CAMERA_Pin 					GPIO_PIN_4
#define DIR_CAMERA_GPIO_Port			GPIOB
#define EN_CAMERA_Pin 					GPIO_PIN_5
#define EN_CAMERA_GPIO_Port 			GPIOB
#define DIR_SEAT_Pin 					GPIO_PIN_8
#define DIR_SEAT_GPIO_Port 			GPIOB
#define EN_SEAT_Pin 					GPIO_PIN_9
#define EN_SEAT_GPIO_Port 			GPIOB





void MX_GPIO_Init(void);

void MX_GPIO_Init(void);

#ifdef __cplusplus
}
#endif
#endif /*__ GPIO_H__ */

